//
// Created by fyt79 on 2019/6/9.
//

#include "include.h"

void shell() {
  char str[1024];
  char key[1024];
  while(1) {
    scanf("%s", str);
    sscanf(str, "%[^=]", key);
    if (strcmp(key, "freq") == 0) {
      set_transmit_frequency(str + 5);
    } else {
      printf("invalid instruction %s\n", str);
    }
  }
}

